/*****************************************************************************
 * Product: 数据同步解决方案                                                    
 * Copyright (C) 2010-2011  瑞科软件. All Rights Reserved.                                                                       *
 * 改程序是开源的，您可以修改源代码，做二次开发，定制您自己的同步程序                     
 * 您可以通过我们的网站了解详细信息，包括安装与使用指南，  http://www.ruike.org         
 * 																		      			
 *****************************************************************************/
package com.mk.code.config;

import java.util.HashMap;
import java.util.Map;

import com.mk.code.engine.mean.method.SequenceMethod;

public class ParseFactory {

	/**
	 * aMap中存的是解析算法
	 */
	public static Map aMap = new HashMap();

	public static String currentCommandName;

	public static SequenceMethod FS;
	public static SequenceMethod TODATE;

	public static void init() {
		aMap.put("@date", "/\\d\\d\\d\\d-\\d\\d/");
		aMap.put("[","[");
	}

	public static boolean isSameName(String name) {
		return name.equals(currentCommandName);
	}

	public static SequenceMethod getInstance(String mean) {

		SequenceMethod aSequenceMethod = new SequenceMethod(mean);
		aSequenceMethod.parse();
		return aSequenceMethod;
	}
}
